package com.house.framework.service;


import com.house.framework.query.BaseQuery;
import com.house.framework.utils.PageList;

import java.util.List;

public interface IBaseService<T> {

    T findById(Long id);

    List<T> findAll();

    void save(T t);

    void update(T t);

    void delete(Long id);

    PageList<T> queryList(BaseQuery query);

    void patchDelete(List<Long> ids);

}
